<div id="page-header">
<h1>Danh sách category</h1>
<br class="cl" />
<br />
<div class="blue large"><a href="/admin/category/add"> Thêm category</a></div>
<br />

<section class="grid_9" id="dashtabs">
        <div id="dashtabs-pages" class="box-content no-padding">
          <table class="table no-border">
            <p class="list_category_main"><?php echo $nameMainProduct[0]['name_vn']?></p>
            <thead>
              <tr>
                <td class="tc checkbox"><input class="check-all" type="checkbox"></td>
                <td>Name</td>
                <td>Category VN</td>
                <td>Category English</td>
                <td>Category Japan</td>
                <td>Order</td>
                <td class="last">Options</td>
              </tr>
            </thead>
            <tbody>
              <?php foreach($listMainProduct as $product){ 
                if($product['parent_id'] == 0) {    
              ?>
              
              <tr class="alt">
                <td class="tc"><input type="checkbox"></td>
                <td><strong><?php echo $product['name_en']?></strong></td>
                <td><strong><?php echo $product['name_vn']?></strong></td>
                <td><strong><?php echo $product['name_en']?></strong></td> 
                <td><strong><?php echo $product['name_jp']?></strong></td> 
                <td></td>
                <td class="last">
                    <a href="/admin/category/edit/<?php echo $product['id']; ?>" class="tooltip" title="Edit Page"><img alt="edit page" src="../../images/admin/icons/16/page_edit.png"></a> 
                    <a href="/admin/category/delete/<?php echo $product['id']; ?>" class="tooltip" title="Delete Page"><img alt="delete page" src="../../images/admin/icons/16/page_delete.png"></a>
                </td>
              </tr>
              <?php } else { ?>
                  <tr class="alt">
                <td class="tc"><input type="checkbox"></td>
                <td><?php echo $product['name_en']?></td>
                <td><?php echo $product['name_vn']?></td>
                <td><?php echo $product['name_en']?></td> 
                <td><?php echo $product['name_jp']?></td> 
                <td><?php echo $product['order_id'] ?></td>
                <td class="last">
                    <a href="/admin/category/edit/<?php echo $product['id']; ?>" class="tooltip" title="Edit Page"><img alt="edit page" src="../../images/admin/icons/16/page_edit.png"></a> 
                    <a href="/admin/category/delete/<?php echo $product['id']; ?>" class="tooltip" title="Delete Page"><img alt="delete page" src="../../images/admin/icons/16/page_delete.png"></a>
                </td>
              </tr>
                  
              <?php }};?>
              
            </tbody>
          </table>
        </div>
        <div class="box-footer"> <span class="txt-smaller txt-light">Showing 5 results of 153</span>
          <ul class="pagination">
            <li><a title="Previous" href="#">&lt; Prev</a></li>
            <li><a class="current" title="Page 1" href="#">1</a></li>
            <li><a title="Page 2" href="#">2</a></li>
            <li><a title="Page 3" href="#">3</a></li>
            <li><a title="Next" href="#">Next &gt;</a></li>
          </ul>
          </div>
    </section>
    <br class="cl" />
    <section class="grid_9" id="dashtabs">
        <div id="dashtabs-pages" class="box-content no-padding">
          <table class="table no-border">
            <p class="list_category_main"><?php echo $nameOtherProduct[0]['name_vn']?></p>
            <thead>
              <tr>
                <td class="tc checkbox"><input class="check-all" type="checkbox"></td>
                <td>Name</td>
                <td>Category VN</td>
                <td>Category English</td>
                <td>Category Japan</td>
                <td>Order</td>
                <td class="last">Options</td>
              </tr>
            </thead>
            <tbody>
              <?php foreach($listOtherProduct as $product){ 
                if($product['parent_id'] == 0) {    
              ?>
              
              <tr class="alt">
                <td class="tc"><input type="checkbox"></td>
                <td><strong><?php echo $product['name_en']?></strong></td>
                <td><strong><?php echo $product['name_vn']?></strong></td>
                <td><strong><?php echo $product['name_en']?></strong></td> 
                <td><strong><?php echo $product['name_jp']?></strong></td> 
                <td></td>
                <td class="last">
                    <a href="/admin/category/edit/<?php echo $product['id']; ?>" class="tooltip" title="Edit Page"><img alt="edit page" src="../../images/admin/icons/16/page_edit.png"></a> 
                    <a href="/admin/category/delete/<?php echo $product['id']; ?>" class="tooltip" title="Delete Page"><img alt="delete page" src="../../images/admin/icons/16/page_delete.png"></a>
                </td>
              </tr>
              <?php } else { ?>
                  <tr class="alt">
                <td class="tc"><input type="checkbox"></td>
                <td><?php echo $product['name_en']?></td> 
                <td><?php echo $product['name_vn']?></td>
                <td><?php echo $product['name_en']?></td> 
                <td><?php echo $product['name_jp']?></td> 
                <td><?php echo $product['order_id'] ?></td>
                <td class="last">
                    <a href="/admin/category/edit/<?php echo $product['id']; ?>" class="tooltip" title="Edit Page"><img alt="edit page" src="../../images/admin/icons/16/page_edit.png"></a> 
                    <a href="/admin/category/delete/<?php echo $product['id']; ?>" class="tooltip" title="Delete Page"><img alt="delete page" src="../../images/admin/icons/16/page_delete.png"></a>
                </td>
              </tr>
                  
              <?php }};?>
              
            </tbody>
          </table>
        </div>
        <div class="box-footer"> <span class="txt-smaller txt-light">Showing 5 results of 153</span>
          <ul class="pagination">
            <li><a title="Previous" href="#">&lt; Prev</a></li>
            <li><a class="current" title="Page 1" href="#">1</a></li>
            <li><a title="Page 2" href="#">2</a></li>
            <li><a title="Page 3" href="#">3</a></li>
            <li><a title="Next" href="#">Next &gt;</a></li>
          </ul>
          </div>
    </section>
    
     
     
</div>
<br class="cl" />
</div>